from django.shortcuts import render

# Create your views here.
from rest_framework.viewsets import ModelViewSet
from app.models import StudentsModel,ClassModel
from app.ser import StuSer,ClassModel

class StuModelView(ModelViewSet):
    queryset = StudentsModel.objects.all()
    serializer_class = StuSer
    lookup_field = 'pk'
    lookup_url_kwarg = 'id'